﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using SqlSugar;
using System.Diagnostics;

namespace Magic.Web.Entry;


public class StudentController : BaseTestController
{
    [HttpGet("TestJson")]
    public string TestJson()
    {
        WeatherForecast weatherForecast = new WeatherForecast();
        weatherForecast.Date = DateOnly.FromDateTime(DateTime.Now);
        weatherForecast.Summary = "夏天";
        weatherForecast.TemperatureC = 55;
        return JsonConvert.SerializeObject(weatherForecast);
    }
}